import math


# 求直角三角形斜边长
def main_1(l1, l2):
    l3 = (l1**2 + l2**2) ** 0.5
    return l3


def main_2(l1, l2):
    l3 = math.sqrt(l1**2 + l2**2)
    return l3


print(main_1(3, 4))
print(main_2(3, 4))
